namespace SmartSoft.Lists
{
    using SmartSoft;
    using SmartSoft.Controls;
    using SmartSoft.Properties;
    using SmartSoft.ADP;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormDmDtEditor : FormListEditor
    {
        private IContainer components;
        private GBoxControl gBoxControl1;
        private GBoxControl gBoxControl3;
        private bool ib_PictureChanged;
        private string is_PicturePath;
        private LabelControl lblChu_Tk;
        private LabelControl lblDia_Chi;
        private LabelControl lblDoi_Tac;
        private LabelControl lblEmail;
        private LabelControl lblFaxes;
        private LabelControl lblIs_Stop;
        private LabelControl lblIs_Stop0;
        private LabelControl lblLoai_Dt;
        private LabelControl lblLoai_Dt0;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Nh_Dt;
        private LabelControl lblMs_Thue;
        private LabelControl lblPhones;
        private LabelControl lblTen_Dt;
        private LabelControl lblTen_NH;
        private LabelControl lblTk_NH;
        private LabelControl lblWebsite;
        private System.Windows.Forms.PictureBox PictureBox;
        private Panel pnlPicture;
        private TextControl txtChu_Tk;
        private TextControl txtDia_Chi;
        private TextControl txtDia_Chi_E;
        private TextControl txtDoi_Tac;
        private TextControl txtDoi_Tac_E;
        private TextControl txtEmail;
        private TextControl txtFaxes;
        private TextOption txtIs_Stop;
        private TextOption txtLoai_Dt;
        private TextControl txtMa_Dt;
        private TextSearch txtMa_Nh_Dt;
        private TextControl txtMs_Thue;
        private TextControl txtPhones;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Dt_E;
        private TextControl txtTen_NH;
        private TextControl txtTen_Nh_Dt;
        private TextControl txtTk_NH;
        private TextControl txtTen_Cv;
        private TextSearch txtMa_Cv;
        private LabelControl labelControl1;
        private TextControl txtWebsite;

        public FormDmDtEditor()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.txtMa_Dt = new SmartSoft.Controls.TextControl();
            this.lblMa_Dt = new SmartSoft.Controls.LabelControl();
            this.txtTen_Dt = new SmartSoft.Controls.TextControl();
            this.lblTen_Dt = new SmartSoft.Controls.LabelControl();
            this.txtLoai_Dt = new SmartSoft.Controls.TextOption();
            this.lblLoai_Dt = new SmartSoft.Controls.LabelControl();
            this.lblIs_Stop = new SmartSoft.Controls.LabelControl();
            this.txtIs_Stop = new SmartSoft.Controls.TextOption();
            this.lblMa_Nh_Dt = new SmartSoft.Controls.LabelControl();
            this.txtMa_Nh_Dt = new SmartSoft.Controls.TextSearch();
            this.txtTen_Nh_Dt = new SmartSoft.Controls.TextControl();
            this.pnlPicture = new System.Windows.Forms.Panel();
            this.PictureBox = new System.Windows.Forms.PictureBox();
            this.lblLoai_Dt0 = new SmartSoft.Controls.LabelControl();
            this.lblIs_Stop0 = new SmartSoft.Controls.LabelControl();
            this.gBoxControl1 = new SmartSoft.Controls.GBoxControl();
            this.txtDoi_Tac = new SmartSoft.Controls.TextControl();
            this.txtDia_Chi = new SmartSoft.Controls.TextControl();
            this.lblDia_Chi = new SmartSoft.Controls.LabelControl();
            this.lblDoi_Tac = new SmartSoft.Controls.LabelControl();
            this.txtPhones = new SmartSoft.Controls.TextControl();
            this.lblPhones = new SmartSoft.Controls.LabelControl();
            this.gBoxControl3 = new SmartSoft.Controls.GBoxControl();
            this.txtDoi_Tac_E = new SmartSoft.Controls.TextControl();
            this.txtDia_Chi_E = new SmartSoft.Controls.TextControl();
            this.txtTen_Dt_E = new SmartSoft.Controls.TextControl();
            this.lblWebsite = new SmartSoft.Controls.LabelControl();
            this.txtWebsite = new SmartSoft.Controls.TextControl();
            this.lblEmail = new SmartSoft.Controls.LabelControl();
            this.lblFaxes = new SmartSoft.Controls.LabelControl();
            this.txtEmail = new SmartSoft.Controls.TextControl();
            this.txtFaxes = new SmartSoft.Controls.TextControl();
            this.lblTk_NH = new SmartSoft.Controls.LabelControl();
            this.txtTk_NH = new SmartSoft.Controls.TextControl();
            this.txtChu_Tk = new SmartSoft.Controls.TextControl();
            this.lblChu_Tk = new SmartSoft.Controls.LabelControl();
            this.txtTen_NH = new SmartSoft.Controls.TextControl();
            this.lblTen_NH = new SmartSoft.Controls.LabelControl();
            this.txtMs_Thue = new SmartSoft.Controls.TextControl();
            this.lblMs_Thue = new SmartSoft.Controls.LabelControl();
            this.txtTen_Cv = new SmartSoft.Controls.TextControl();
            this.txtMa_Cv = new SmartSoft.Controls.TextSearch();
            this.labelControl1 = new SmartSoft.Controls.LabelControl();
            this.pnlPicture.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.PictureBox)).BeginInit();
            this.gBoxControl1.SuspendLayout();
            this.gBoxControl3.SuspendLayout();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 416);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.FirstFilter = "Type = \'DT1\'";
            this.txtMa_Loai1.Location = new System.Drawing.Point(123, 413);
            this.txtMa_Loai1.Size = new System.Drawing.Size(188, 20);
            this.txtMa_Loai1.TabIndex = 18;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.FirstFilter = "Type = \'DT2\'";
            this.txtMa_Loai2.Location = new System.Drawing.Point(314, 413);
            this.txtMa_Loai2.Size = new System.Drawing.Size(190, 20);
            this.txtMa_Loai2.TabIndex = 19;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.FirstFilter = "Type = \'DT3\'";
            this.txtMa_Loai3.Location = new System.Drawing.Point(507, 413);
            this.txtMa_Loai3.Size = new System.Drawing.Size(188, 20);
            this.txtMa_Loai3.TabIndex = 20;
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.Location = new System.Drawing.Point(123, 28);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Dt.TabIndex = 0;
            this.txtMa_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 31);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(70, 14);
            this.lblMa_Dt.TabIndex = 4;
            this.lblMa_Dt.Text = "Mã đối tượng";
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.Location = new System.Drawing.Point(6, 19);
            this.txtTen_Dt.MaxLength = 128;
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(273, 20);
            this.txtTen_Dt.TabIndex = 0;
            this.txtTen_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblTen_Dt
            // 
            this.lblTen_Dt.AutoSize = true;
            this.lblTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Dt.Location = new System.Drawing.Point(12, 76);
            this.lblTen_Dt.Name = "lblTen_Dt";
            this.lblTen_Dt.Size = new System.Drawing.Size(74, 14);
            this.lblTen_Dt.TabIndex = 4;
            this.lblTen_Dt.Text = "Tên đối tượng";
            // 
            // txtLoai_Dt
            // 
            this.txtLoai_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtLoai_Dt.CheckTextSearched = false;
            this.txtLoai_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtLoai_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtLoai_Dt.InputMask = "0,1,2";
            this.txtLoai_Dt.Location = new System.Drawing.Point(123, 368);
            this.txtLoai_Dt.Name = "txtLoai_Dt";
            this.txtLoai_Dt.OldValue = null;
            this.txtLoai_Dt.Size = new System.Drawing.Size(23, 20);
            this.txtLoai_Dt.TabIndex = 13;
            this.txtLoai_Dt.Text = "0";
            this.txtLoai_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtLoai_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtLoai_Dt.Value = "0";
            // 
            // lblLoai_Dt
            // 
            this.lblLoai_Dt.AutoSize = true;
            this.lblLoai_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_Dt.Location = new System.Drawing.Point(12, 371);
            this.lblLoai_Dt.Name = "lblLoai_Dt";
            this.lblLoai_Dt.Size = new System.Drawing.Size(76, 14);
            this.lblLoai_Dt.TabIndex = 4;
            this.lblLoai_Dt.Text = "Loại đối tượng";
            // 
            // lblIs_Stop
            // 
            this.lblIs_Stop.AutoSize = true;
            this.lblIs_Stop.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblIs_Stop.Location = new System.Drawing.Point(12, 350);
            this.lblIs_Stop.Name = "lblIs_Stop";
            this.lblIs_Stop.Size = new System.Drawing.Size(92, 14);
            this.lblIs_Stop.TabIndex = 4;
            this.lblIs_Stop.Text = "Đình chỉ giao dịch";
            // 
            // txtIs_Stop
            // 
            this.txtIs_Stop.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtIs_Stop.CheckTextSearched = false;
            this.txtIs_Stop.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtIs_Stop.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtIs_Stop.InputMask = "1,0";
            this.txtIs_Stop.Location = new System.Drawing.Point(123, 347);
            this.txtIs_Stop.Name = "txtIs_Stop";
            this.txtIs_Stop.OldValue = null;
            this.txtIs_Stop.Size = new System.Drawing.Size(23, 20);
            this.txtIs_Stop.TabIndex = 12;
            this.txtIs_Stop.Text = "1";
            this.txtIs_Stop.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtIs_Stop.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtIs_Stop.Value = "1";
            // 
            // lblMa_Nh_Dt
            // 
            this.lblMa_Nh_Dt.AutoSize = true;
            this.lblMa_Nh_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nh_Dt.Location = new System.Drawing.Point(12, 392);
            this.lblMa_Nh_Dt.Name = "lblMa_Nh_Dt";
            this.lblMa_Nh_Dt.Size = new System.Drawing.Size(83, 14);
            this.lblMa_Nh_Dt.TabIndex = 4;
            this.lblMa_Nh_Dt.Text = "Nhóm đối tượng";
            // 
            // txtMa_Nh_Dt
            // 
            this.txtMa_Nh_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nh_Dt.CheckTextSearched = false;
            this.txtMa_Nh_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nh_Dt.FieldDisplay = "Ten_Nh_Dt";
            this.txtMa_Nh_Dt.FirstFilter = "Nh_Cuoi_Dt = \'C\'";
            this.txtMa_Nh_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nh_Dt.Location = new System.Drawing.Point(123, 389);
            this.txtMa_Nh_Dt.MaxLength = 32;
            this.txtMa_Nh_Dt.Name = "txtMa_Nh_Dt";
            this.txtMa_Nh_Dt.OldValue = null;
            this.txtMa_Nh_Dt.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Nh_Dt.TabIndex = 16;
            this.txtMa_Nh_Dt.TableName = "DMNHDT";
            this.txtMa_Nh_Dt.TextDisplay = this.txtTen_Nh_Dt;
            this.txtMa_Nh_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nh_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Nh_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtTen_Nh_Dt
            // 
            this.txtTen_Nh_Dt.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Nh_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Nh_Dt.CheckTextSearched = false;
            this.txtTen_Nh_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Dt.Enabled = false;
            this.txtTen_Nh_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nh_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nh_Dt.Location = new System.Drawing.Point(229, 393);
            this.txtTen_Nh_Dt.Name = "txtTen_Nh_Dt";
            this.txtTen_Nh_Dt.OldValue = null;
            this.txtTen_Nh_Dt.Size = new System.Drawing.Size(181, 13);
            this.txtTen_Nh_Dt.TabIndex = 13;
            this.txtTen_Nh_Dt.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Nh_Dt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Nh_Dt.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // pnlPicture
            // 
            this.pnlPicture.BackColor = System.Drawing.Color.Cyan;
            this.pnlPicture.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pnlPicture.Controls.Add(this.PictureBox);
            this.pnlPicture.Location = new System.Drawing.Point(416, 152);
            this.pnlPicture.Name = "pnlPicture";
            this.pnlPicture.Size = new System.Drawing.Size(273, 250);
            this.pnlPicture.TabIndex = 12;
            // 
            // PictureBox
            // 
            this.PictureBox.BackColor = System.Drawing.Color.Blue;
            this.PictureBox.BackgroundImage = global::SmartSoft.Properties.Resources.NoPicture;
            this.PictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.PictureBox.Location = new System.Drawing.Point(3, 3);
            this.PictureBox.Name = "PictureBox";
            this.PictureBox.Size = new System.Drawing.Size(263, 240);
            this.PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.PictureBox.TabIndex = 0;
            this.PictureBox.TabStop = false;
            this.PictureBox.DoubleClick += new System.EventHandler(this.PictureBox_DoubleClick);
            // 
            // lblLoai_Dt0
            // 
            this.lblLoai_Dt0.AutoSize = true;
            this.lblLoai_Dt0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblLoai_Dt0.ForeColor = System.Drawing.Color.Blue;
            this.lblLoai_Dt0.Location = new System.Drawing.Point(152, 371);
            this.lblLoai_Dt0.Name = "lblLoai_Dt0";
            this.lblLoai_Dt0.Size = new System.Drawing.Size(214, 14);
            this.lblLoai_Dt0.TabIndex = 33;
            this.lblLoai_Dt0.Text = "0-Cán bộ, 1-Nhà cung cấp, 2-Nhà sản xuất";
            // 
            // lblIs_Stop0
            // 
            this.lblIs_Stop0.AutoSize = true;
            this.lblIs_Stop0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblIs_Stop0.ForeColor = System.Drawing.Color.Blue;
            this.lblIs_Stop0.Location = new System.Drawing.Point(152, 350);
            this.lblIs_Stop0.Name = "lblIs_Stop0";
            this.lblIs_Stop0.Size = new System.Drawing.Size(172, 14);
            this.lblIs_Stop0.TabIndex = 33;
            this.lblIs_Stop0.Text = "1-Hoạt động, 0-Đình chỉ hoạt động";
            // 
            // gBoxControl1
            // 
            this.gBoxControl1.Controls.Add(this.txtDoi_Tac);
            this.gBoxControl1.Controls.Add(this.txtDia_Chi);
            this.gBoxControl1.Controls.Add(this.txtTen_Dt);
            this.gBoxControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl1.Location = new System.Drawing.Point(117, 54);
            this.gBoxControl1.Name = "gBoxControl1";
            this.gBoxControl1.Size = new System.Drawing.Size(285, 89);
            this.gBoxControl1.TabIndex = 1;
            this.gBoxControl1.TabStop = false;
            this.gBoxControl1.Text = "Tiếng Việt";
            // 
            // txtDoi_Tac
            // 
            this.txtDoi_Tac.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDoi_Tac.CheckTextSearched = false;
            this.txtDoi_Tac.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDoi_Tac.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDoi_Tac.Location = new System.Drawing.Point(6, 63);
            this.txtDoi_Tac.MaxLength = 128;
            this.txtDoi_Tac.Name = "txtDoi_Tac";
            this.txtDoi_Tac.OldValue = null;
            this.txtDoi_Tac.Size = new System.Drawing.Size(273, 20);
            this.txtDoi_Tac.TabIndex = 2;
            this.txtDoi_Tac.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDoi_Tac.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtDoi_Tac.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtDia_Chi
            // 
            this.txtDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDia_Chi.CheckTextSearched = false;
            this.txtDia_Chi.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDia_Chi.Location = new System.Drawing.Point(6, 41);
            this.txtDia_Chi.MaxLength = 128;
            this.txtDia_Chi.Name = "txtDia_Chi";
            this.txtDia_Chi.OldValue = null;
            this.txtDia_Chi.Size = new System.Drawing.Size(273, 20);
            this.txtDia_Chi.TabIndex = 1;
            this.txtDia_Chi.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDia_Chi.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtDia_Chi.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblDia_Chi
            // 
            this.lblDia_Chi.AutoSize = true;
            this.lblDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDia_Chi.Location = new System.Drawing.Point(12, 98);
            this.lblDia_Chi.Name = "lblDia_Chi";
            this.lblDia_Chi.Size = new System.Drawing.Size(40, 14);
            this.lblDia_Chi.TabIndex = 4;
            this.lblDia_Chi.Text = "Địa chỉ";
            // 
            // lblDoi_Tac
            // 
            this.lblDoi_Tac.AutoSize = true;
            this.lblDoi_Tac.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDoi_Tac.Location = new System.Drawing.Point(12, 120);
            this.lblDoi_Tac.Name = "lblDoi_Tac";
            this.lblDoi_Tac.Size = new System.Drawing.Size(87, 14);
            this.lblDoi_Tac.TabIndex = 4;
            this.lblDoi_Tac.Text = "Đối tác giao dịch";
            // 
            // txtPhones
            // 
            this.txtPhones.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPhones.CheckTextSearched = false;
            this.txtPhones.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtPhones.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtPhones.Location = new System.Drawing.Point(123, 169);
            this.txtPhones.MaxLength = 128;
            this.txtPhones.Name = "txtPhones";
            this.txtPhones.OldValue = null;
            this.txtPhones.Size = new System.Drawing.Size(273, 20);
            this.txtPhones.TabIndex = 4;
            this.txtPhones.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtPhones.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtPhones.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblPhones
            // 
            this.lblPhones.AutoSize = true;
            this.lblPhones.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblPhones.Location = new System.Drawing.Point(12, 172);
            this.lblPhones.Name = "lblPhones";
            this.lblPhones.Size = new System.Drawing.Size(69, 14);
            this.lblPhones.TabIndex = 4;
            this.lblPhones.Text = "Số điện thoại";
            // 
            // gBoxControl3
            // 
            this.gBoxControl3.Controls.Add(this.txtDoi_Tac_E);
            this.gBoxControl3.Controls.Add(this.txtDia_Chi_E);
            this.gBoxControl3.Controls.Add(this.txtTen_Dt_E);
            this.gBoxControl3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.gBoxControl3.Location = new System.Drawing.Point(410, 54);
            this.gBoxControl3.Name = "gBoxControl3";
            this.gBoxControl3.Size = new System.Drawing.Size(285, 89);
            this.gBoxControl3.TabIndex = 2;
            this.gBoxControl3.TabStop = false;
            this.gBoxControl3.Text = "Tiếng Anh";
            // 
            // txtDoi_Tac_E
            // 
            this.txtDoi_Tac_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDoi_Tac_E.CheckTextSearched = false;
            this.txtDoi_Tac_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDoi_Tac_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDoi_Tac_E.Location = new System.Drawing.Point(6, 63);
            this.txtDoi_Tac_E.MaxLength = 128;
            this.txtDoi_Tac_E.Name = "txtDoi_Tac_E";
            this.txtDoi_Tac_E.OldValue = null;
            this.txtDoi_Tac_E.Size = new System.Drawing.Size(273, 20);
            this.txtDoi_Tac_E.TabIndex = 2;
            this.txtDoi_Tac_E.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDoi_Tac_E.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtDoi_Tac_E.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtDia_Chi_E
            // 
            this.txtDia_Chi_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDia_Chi_E.CheckTextSearched = false;
            this.txtDia_Chi_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtDia_Chi_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDia_Chi_E.Location = new System.Drawing.Point(6, 41);
            this.txtDia_Chi_E.MaxLength = 128;
            this.txtDia_Chi_E.Name = "txtDia_Chi_E";
            this.txtDia_Chi_E.OldValue = null;
            this.txtDia_Chi_E.Size = new System.Drawing.Size(273, 20);
            this.txtDia_Chi_E.TabIndex = 1;
            this.txtDia_Chi_E.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDia_Chi_E.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtDia_Chi_E.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtTen_Dt_E
            // 
            this.txtTen_Dt_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt_E.CheckTextSearched = false;
            this.txtTen_Dt_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Dt_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt_E.Location = new System.Drawing.Point(6, 19);
            this.txtTen_Dt_E.MaxLength = 128;
            this.txtTen_Dt_E.Name = "txtTen_Dt_E";
            this.txtTen_Dt_E.OldValue = null;
            this.txtTen_Dt_E.Size = new System.Drawing.Size(273, 20);
            this.txtTen_Dt_E.TabIndex = 0;
            this.txtTen_Dt_E.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Dt_E.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_Dt_E.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblWebsite
            // 
            this.lblWebsite.AutoSize = true;
            this.lblWebsite.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblWebsite.Location = new System.Drawing.Point(12, 239);
            this.lblWebsite.Name = "lblWebsite";
            this.lblWebsite.Size = new System.Drawing.Size(46, 14);
            this.lblWebsite.TabIndex = 4;
            this.lblWebsite.Text = "Website";
            // 
            // txtWebsite
            // 
            this.txtWebsite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtWebsite.CheckTextSearched = false;
            this.txtWebsite.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtWebsite.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtWebsite.Location = new System.Drawing.Point(123, 235);
            this.txtWebsite.MaxLength = 128;
            this.txtWebsite.Name = "txtWebsite";
            this.txtWebsite.OldValue = null;
            this.txtWebsite.Size = new System.Drawing.Size(273, 20);
            this.txtWebsite.TabIndex = 7;
            this.txtWebsite.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtWebsite.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtWebsite.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblEmail
            // 
            this.lblEmail.AutoSize = true;
            this.lblEmail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblEmail.Location = new System.Drawing.Point(12, 212);
            this.lblEmail.Name = "lblEmail";
            this.lblEmail.Size = new System.Drawing.Size(31, 14);
            this.lblEmail.TabIndex = 4;
            this.lblEmail.Text = "Email";
            // 
            // lblFaxes
            // 
            this.lblFaxes.AutoSize = true;
            this.lblFaxes.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblFaxes.Location = new System.Drawing.Point(12, 193);
            this.lblFaxes.Name = "lblFaxes";
            this.lblFaxes.Size = new System.Drawing.Size(41, 14);
            this.lblFaxes.TabIndex = 4;
            this.lblFaxes.Text = "Số Fax";
            // 
            // txtEmail
            // 
            this.txtEmail.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtEmail.CheckTextSearched = false;
            this.txtEmail.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtEmail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtEmail.Location = new System.Drawing.Point(123, 213);
            this.txtEmail.MaxLength = 128;
            this.txtEmail.Name = "txtEmail";
            this.txtEmail.OldValue = null;
            this.txtEmail.Size = new System.Drawing.Size(273, 20);
            this.txtEmail.TabIndex = 6;
            this.txtEmail.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtEmail.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtEmail.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtFaxes
            // 
            this.txtFaxes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtFaxes.CheckTextSearched = false;
            this.txtFaxes.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtFaxes.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtFaxes.Location = new System.Drawing.Point(123, 191);
            this.txtFaxes.MaxLength = 128;
            this.txtFaxes.Name = "txtFaxes";
            this.txtFaxes.OldValue = null;
            this.txtFaxes.Size = new System.Drawing.Size(273, 20);
            this.txtFaxes.TabIndex = 5;
            this.txtFaxes.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtFaxes.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtFaxes.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblTk_NH
            // 
            this.lblTk_NH.AutoSize = true;
            this.lblTk_NH.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_NH.Location = new System.Drawing.Point(12, 283);
            this.lblTk_NH.Name = "lblTk_NH";
            this.lblTk_NH.Size = new System.Drawing.Size(66, 14);
            this.lblTk_NH.TabIndex = 41;
            this.lblTk_NH.Text = "Số tài khoản";
            // 
            // txtTk_NH
            // 
            this.txtTk_NH.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTk_NH.CheckTextSearched = false;
            this.txtTk_NH.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_NH.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_NH.Location = new System.Drawing.Point(123, 280);
            this.txtTk_NH.MaxLength = 32;
            this.txtTk_NH.Name = "txtTk_NH";
            this.txtTk_NH.OldValue = null;
            this.txtTk_NH.Size = new System.Drawing.Size(273, 20);
            this.txtTk_NH.TabIndex = 9;
            this.txtTk_NH.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_NH.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_NH.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtChu_Tk
            // 
            this.txtChu_Tk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtChu_Tk.CheckTextSearched = false;
            this.txtChu_Tk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtChu_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtChu_Tk.Location = new System.Drawing.Point(123, 257);
            this.txtChu_Tk.MaxLength = 128;
            this.txtChu_Tk.Name = "txtChu_Tk";
            this.txtChu_Tk.OldValue = null;
            this.txtChu_Tk.Size = new System.Drawing.Size(273, 20);
            this.txtChu_Tk.TabIndex = 8;
            this.txtChu_Tk.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtChu_Tk.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtChu_Tk.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblChu_Tk
            // 
            this.lblChu_Tk.AutoSize = true;
            this.lblChu_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblChu_Tk.Location = new System.Drawing.Point(12, 260);
            this.lblChu_Tk.Name = "lblChu_Tk";
            this.lblChu_Tk.Size = new System.Drawing.Size(72, 14);
            this.lblChu_Tk.TabIndex = 41;
            this.lblChu_Tk.Text = "Chủ tài khoản";
            // 
            // txtTen_NH
            // 
            this.txtTen_NH.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_NH.CheckTextSearched = false;
            this.txtTen_NH.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_NH.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_NH.Location = new System.Drawing.Point(123, 302);
            this.txtTen_NH.MaxLength = 128;
            this.txtTen_NH.Name = "txtTen_NH";
            this.txtTen_NH.OldValue = null;
            this.txtTen_NH.Size = new System.Drawing.Size(273, 20);
            this.txtTen_NH.TabIndex = 10;
            this.txtTen_NH.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_NH.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTen_NH.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblTen_NH
            // 
            this.lblTen_NH.AutoSize = true;
            this.lblTen_NH.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_NH.Location = new System.Drawing.Point(12, 305);
            this.lblTen_NH.Name = "lblTen_NH";
            this.lblTen_NH.Size = new System.Drawing.Size(59, 14);
            this.lblTen_NH.TabIndex = 41;
            this.lblTen_NH.Text = "Ngân hàng";
            // 
            // txtMs_Thue
            // 
            this.txtMs_Thue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMs_Thue.CheckTextSearched = false;
            this.txtMs_Thue.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMs_Thue.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMs_Thue.Location = new System.Drawing.Point(123, 325);
            this.txtMs_Thue.MaxLength = 20;
            this.txtMs_Thue.Name = "txtMs_Thue";
            this.txtMs_Thue.OldValue = null;
            this.txtMs_Thue.Size = new System.Drawing.Size(273, 20);
            this.txtMs_Thue.TabIndex = 11;
            this.txtMs_Thue.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemUnit;
            this.txtMs_Thue.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMs_Thue.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // lblMs_Thue
            // 
            this.lblMs_Thue.AutoSize = true;
            this.lblMs_Thue.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMs_Thue.Location = new System.Drawing.Point(12, 328);
            this.lblMs_Thue.Name = "lblMs_Thue";
            this.lblMs_Thue.Size = new System.Drawing.Size(60, 14);
            this.lblMs_Thue.TabIndex = 41;
            this.lblMs_Thue.Text = "Mã số thuế";
            // 
            // txtTen_Cv
            // 
            this.txtTen_Cv.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Cv.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Cv.CheckTextSearched = false;
            this.txtTen_Cv.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Cv.Enabled = false;
            this.txtTen_Cv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Cv.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Cv.Location = new System.Drawing.Point(229, 151);
            this.txtTen_Cv.Name = "txtTen_Cv";
            this.txtTen_Cv.OldValue = null;
            this.txtTen_Cv.Size = new System.Drawing.Size(181, 13);
            this.txtTen_Cv.TabIndex = 43;
            this.txtTen_Cv.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Cv.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Cv.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // txtMa_Cv
            // 
            this.txtMa_Cv.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Cv.CheckTextSearched = false;
            this.txtMa_Cv.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Cv.FieldDisplay = "Ten_Cv";
            this.txtMa_Cv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Cv.Location = new System.Drawing.Point(123, 147);
            this.txtMa_Cv.MaxLength = 32;
            this.txtMa_Cv.Name = "txtMa_Cv";
            this.txtMa_Cv.OldValue = null;
            this.txtMa_Cv.Size = new System.Drawing.Size(100, 20);
            this.txtMa_Cv.TabIndex = 3;
            this.txtMa_Cv.TableName = "DMCV";
            this.txtMa_Cv.TextDisplay = this.txtTen_Cv;
            this.txtMa_Cv.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Cv.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Cv.Value = global::SmartSoft.ReportForms.FormVTH02BViewer.txtTen_Nh_Vt_Value;
            // 
            // labelControl1
            // 
            this.labelControl1.AutoSize = true;
            this.labelControl1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.labelControl1.Location = new System.Drawing.Point(12, 150);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new System.Drawing.Size(48, 14);
            this.labelControl1.TabIndex = 42;
            this.labelControl1.Text = "Chức vụ";
            // 
            // FormDmDtEditor
            // 
            this.AddTitleText = "Thêm mới đối tượng";
            this.ClientSize = new System.Drawing.Size(707, 445);
            this.Controls.Add(this.txtTen_Cv);
            this.Controls.Add(this.txtMa_Cv);
            this.Controls.Add(this.labelControl1);
            this.Controls.Add(this.lblMs_Thue);
            this.Controls.Add(this.lblTen_NH);
            this.Controls.Add(this.lblChu_Tk);
            this.Controls.Add(this.lblTk_NH);
            this.Controls.Add(this.txtMs_Thue);
            this.Controls.Add(this.txtTen_NH);
            this.Controls.Add(this.txtChu_Tk);
            this.Controls.Add(this.txtTk_NH);
            this.Controls.Add(this.lblIs_Stop0);
            this.Controls.Add(this.lblLoai_Dt0);
            this.Controls.Add(this.txtTen_Nh_Dt);
            this.Controls.Add(this.pnlPicture);
            this.Controls.Add(this.txtPhones);
            this.Controls.Add(this.txtMa_Nh_Dt);
            this.Controls.Add(this.lblDoi_Tac);
            this.Controls.Add(this.txtIs_Stop);
            this.Controls.Add(this.lblDia_Chi);
            this.Controls.Add(this.txtWebsite);
            this.Controls.Add(this.txtLoai_Dt);
            this.Controls.Add(this.lblPhones);
            this.Controls.Add(this.lblIs_Stop);
            this.Controls.Add(this.lblMa_Nh_Dt);
            this.Controls.Add(this.lblTen_Dt);
            this.Controls.Add(this.lblWebsite);
            this.Controls.Add(this.lblLoai_Dt);
            this.Controls.Add(this.txtFaxes);
            this.Controls.Add(this.txtEmail);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblFaxes);
            this.Controls.Add(this.gBoxControl1);
            this.Controls.Add(this.gBoxControl3);
            this.Controls.Add(this.lblEmail);
            this.EditTitleText = "Sửa đối tượng";
            this.FirstFreeCode = "DT1";
            this.Name = "FormDmDtEditor";
            this.SecondFreeCode = "DT2";
            this.Text = "Thêm mới đối tượng";
            this.ThirdFreeCode = "DT3";
            this.Controls.SetChildIndex(this.lblEmail, 0);
            this.Controls.SetChildIndex(this.gBoxControl3, 0);
            this.Controls.SetChildIndex(this.gBoxControl1, 0);
            this.Controls.SetChildIndex(this.lblFaxes, 0);
            this.Controls.SetChildIndex(this.txtMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblMa_Dt, 0);
            this.Controls.SetChildIndex(this.txtEmail, 0);
            this.Controls.SetChildIndex(this.txtFaxes, 0);
            this.Controls.SetChildIndex(this.lblLoai_Dt, 0);
            this.Controls.SetChildIndex(this.lblWebsite, 0);
            this.Controls.SetChildIndex(this.lblTen_Dt, 0);
            this.Controls.SetChildIndex(this.lblMa_Nh_Dt, 0);
            this.Controls.SetChildIndex(this.lblIs_Stop, 0);
            this.Controls.SetChildIndex(this.lblPhones, 0);
            this.Controls.SetChildIndex(this.txtLoai_Dt, 0);
            this.Controls.SetChildIndex(this.txtWebsite, 0);
            this.Controls.SetChildIndex(this.lblDia_Chi, 0);
            this.Controls.SetChildIndex(this.txtIs_Stop, 0);
            this.Controls.SetChildIndex(this.lblDoi_Tac, 0);
            this.Controls.SetChildIndex(this.txtMa_Nh_Dt, 0);
            this.Controls.SetChildIndex(this.txtPhones, 0);
            this.Controls.SetChildIndex(this.pnlPicture, 0);
            this.Controls.SetChildIndex(this.txtTen_Nh_Dt, 0);
            this.Controls.SetChildIndex(this.lblLoai_Dt0, 0);
            this.Controls.SetChildIndex(this.lblIs_Stop0, 0);
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.txtTk_NH, 0);
            this.Controls.SetChildIndex(this.txtChu_Tk, 0);
            this.Controls.SetChildIndex(this.txtTen_NH, 0);
            this.Controls.SetChildIndex(this.txtMs_Thue, 0);
            this.Controls.SetChildIndex(this.lblTk_NH, 0);
            this.Controls.SetChildIndex(this.lblChu_Tk, 0);
            this.Controls.SetChildIndex(this.lblTen_NH, 0);
            this.Controls.SetChildIndex(this.lblMs_Thue, 0);
            this.Controls.SetChildIndex(this.labelControl1, 0);
            this.Controls.SetChildIndex(this.txtMa_Cv, 0);
            this.Controls.SetChildIndex(this.txtTen_Cv, 0);
            this.pnlPicture.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.PictureBox)).EndInit();
            this.gBoxControl1.ResumeLayout(false);
            this.gBoxControl1.PerformLayout();
            this.gBoxControl3.ResumeLayout(false);
            this.gBoxControl3.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        protected override void OnReset()
        {
            if ((base.NewChecked && (base.LocalCurrentRow == null)) && (base.LocalFormLister.ParentCurrentRow != null))
            {
                this.txtMa_Nh_Dt.Text = base.LocalFormLister.ParentCurrentRow[base.LocalFormLister.ParentFieldName].ToString();
                this.txtTen_Nh_Dt.Text = base.LocalFormLister.ParentCurrentRow["Ten_Nh_Dt"].ToString();
            }
            base.OnReset();
        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (string.IsNullOrEmpty(this.txtMa_Dt.Text))
            {
                MessageBox.Show("Chưa nhập mã đối tượng!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTen_Dt.Text))
            {
                MessageBox.Show("Chưa nhập tên đối tượng!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtMa_Nh_Dt.Text))
            {
                MessageBox.Show("Chưa nhập mã nhóm đối tượng!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (!AppInstance.TaxCodeValidate(this.txtMs_Thue.Value))
            {
                MessageBox.Show("Mã số thuế không chính xác!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            localCurrentRow["Ma_Dt"] = this.txtMa_Dt.Value;
            localCurrentRow["Ten_Dt"] = this.txtTen_Dt.Value;
            localCurrentRow["Ten_Dt_E"] = this.txtTen_Dt_E.Value;
            localCurrentRow["Dia_Chi"] = this.txtDia_Chi.Value;
            localCurrentRow["Dia_Chi_E"] = this.txtDia_Chi_E.Value;
            localCurrentRow["Doi_Tac"] = this.txtDoi_Tac.Value;
            localCurrentRow["Doi_Tac_E"] = this.txtDoi_Tac_E.Value;
            localCurrentRow["Phones"] = this.txtPhones.Value;
            localCurrentRow["Faxes"] = this.txtFaxes.Value;
            localCurrentRow["Website"] = this.txtWebsite.Value;
            localCurrentRow["Email"] = this.txtEmail.Value;
            localCurrentRow["Tk_NH"] = this.txtTk_NH.Value;
            localCurrentRow["Chu_Tk"] = this.txtChu_Tk.Value;
            localCurrentRow["Ten_NH"] = this.txtTen_NH.Value;
            localCurrentRow["Ms_Thue"] = this.txtMs_Thue.Value;
            localCurrentRow["Is_Stop"] = this.txtIs_Stop.Value;
            localCurrentRow["No_Co"] = this.txtLoai_Dt.Value;
            //localCurrentRow["Tien_Lmt"] = this.txtTien_Lmt.Value;
            //localCurrentRow["Han_Tt"] = this.txtHan_Tt.Value;
            localCurrentRow["Ma_Nh_Dt"] = this.txtMa_Nh_Dt.Value;
            localCurrentRow["Ten_Nh_Dt"] = this.txtTen_Nh_Dt.Value;
            localCurrentRow["Ma_Loai1"] = base.txtMa_Loai1.Value;
            localCurrentRow["Ma_Loai2"] = base.txtMa_Loai2.Value;
            localCurrentRow["Ma_Loai3"] = base.txtMa_Loai3.Value;
            localCurrentRow["Ma_Cv"] = this.txtMa_Cv.Value;
            localCurrentRow["Ten_Cv"] = this.txtTen_Cv.Value;

            //Nếu nhóm dt là dùng chung -> giá trị Ma_Dvcs sẽ là Null (thực hiện trong thủ tục)
            localCurrentRow["Ma_Dvcs"] = AppInstance.Subsidiary;
            DmDtDataAccess access = new DmDtDataAccess();
            if (base.ShowMessage(localCurrentRow, access.SaveRow(base.NewChecked, localCurrentRow)))
            {
                return false;
            }
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            if (this.ib_PictureChanged)
            {
                SSDataAccess.SetPicture(base.LocalFormLister.LocalTableName, base.LocalFormLister.LocalKeyField, base.LocalCurrentRow[base.LocalFormLister.LocalKeyField], "Image_Name", "Image_Item", this.is_PicturePath);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtMa_Dt.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtMa_Dt.Value = base.LocalCurrentRow["Ma_Dt"];
            this.txtTen_Dt.Value = base.LocalCurrentRow["Ten_Dt"];
            this.txtTen_Dt_E.Value = base.LocalCurrentRow["Ten_Dt_E"];
            this.txtDia_Chi.Value = base.LocalCurrentRow["Dia_Chi"];
            this.txtDia_Chi_E.Value = base.LocalCurrentRow["Dia_Chi_E"];
            this.txtDoi_Tac.Value = base.LocalCurrentRow["Doi_Tac"];
            this.txtDoi_Tac_E.Value = base.LocalCurrentRow["Doi_Tac_E"];
            this.txtPhones.Value = base.LocalCurrentRow["Phones"];
            this.txtFaxes.Value = base.LocalCurrentRow["Faxes"];
            this.txtWebsite.Value = base.LocalCurrentRow["Website"];
            this.txtEmail.Value = base.LocalCurrentRow["Email"];
            this.txtTk_NH.Value = base.LocalCurrentRow["Tk_NH"];
            this.txtChu_Tk.Value = base.LocalCurrentRow["Chu_Tk"];
            this.txtTen_NH.Value = base.LocalCurrentRow["Ten_NH"];
            this.txtMs_Thue.Value = base.LocalCurrentRow["Ms_Thue"];
            this.txtIs_Stop.Value = base.LocalCurrentRow["Is_Stop"];
            this.txtLoai_Dt.Value = base.LocalCurrentRow["No_Co"];
            //this.txtTien_Lmt.Value = base.LocalCurrentRow["Tien_Lmt"];
            //this.txtHan_Tt.Value = base.LocalCurrentRow["Han_Tt"];
            this.txtMa_Nh_Dt.Value = base.LocalCurrentRow["Ma_Nh_Dt"];
            this.txtTen_Nh_Dt.Value = base.LocalCurrentRow["Ten_Nh_Dt"];
            base.txtMa_Loai1.Value = base.LocalCurrentRow["Ma_Loai1"];
            base.txtMa_Loai2.Value = base.LocalCurrentRow["Ma_Loai2"];
            base.txtMa_Loai3.Value = base.LocalCurrentRow["Ma_Loai3"];
            this.txtMa_Cv.Value = base.LocalCurrentRow["Ma_Cv"];
            this.txtTen_Cv.Value = base.LocalCurrentRow["Ten_Cv"];
            this.PictureBox.Image = SSDataAccess.GetPicture(base.LocalFormLister.LocalTableName, base.LocalFormLister.LocalKeyField, base.LocalCurrentRow[base.LocalFormLister.LocalKeyField], "Image_Name", "Image_Item");
            base.OnShow();
        }

        private void PictureBox_DoubleClick(object sender, EventArgs e)
        {
            this.ib_PictureChanged = true;
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.InitialDirectory = "";
            dialog.Filter = "JPEG (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|Bitmap files (*.bmp)|*.bmp|GIF (*.gif)|*.gif|TIFF (*.tif;*.tiff)|*.tif;*.tiff|All files (*.*)|*.*";
            dialog.CheckFileExists = true;
            dialog.ShowDialog();
            this.is_PicturePath = dialog.FileName;
            if (!this.is_PicturePath.Equals(string.Empty))
            {
                this.PictureBox.Image = new Bitmap(this.is_PicturePath);
            }
            else
            {
                this.PictureBox.Image = null;
            }
        }
    }
}

